#
# num int(input("请输入数字 "))
# if(0<num<100);
# print(   )
def get_membership_level(m, s):
    if m >= 1000 and s >= 10000:
        return "钻石会员"
    elif 500 <= m< 1000 and 5000 <= s< 10000:
        return "白金会员"
    elif 200 <= m < 500 and 2000 <= s < 5000:
        return "黄金会员"
    elif 100 <= m < 200 and 1000 <= s < 2000:
        return "白银会员"
    elif 500 <= s < 1000:
        return "青铜会员"
    elif s < 500:
        return "普通会员"
    else:
        return "不符合任何等级"
# 示例调用
print(get_membership_level(1200, 12000))  # 输出：钻石会员
print(get_membership_level(300, 2500))    # 输出：黄金会员
print(get_membership_level(80, 600))      # 输出：青铜会员



# for i in "Hello":
#     print(i,end=",")
# for i in range(100,1000):
#     print(i,end=",")
# for i in range(1,5+1):
#     for j in range(1,i+1):
#         print("*", end="")
#     print()
#
# for i in range(1, 5 + 1):
#     for j in range(5 - i):
#         print("*", end="")
#     for j in range(1,2*i):
#         print("*", end="")
#     print()
#
# for i in range(1, 10,2):
#     print(("*"*i).center(10))
#

x=eval(input())
a=x%10
b=(x//10)%10
c=(x//100)
if  x==a*a+b*b+c*c:
    print("{0}是水仙花数".format(x))
else:
    print("{0}不是水仙花数".format(x))




